package org.example.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
    * 角色菜单关联表
    */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "role_menu")
public class RoleMenu {
    /**
     * 主键ID
     */
    @TableId(value = "rm_id", type = IdType.INPUT)
    private Integer rmId;

    /**
     * 角色ID
     */
    @TableField(value = "role_id")
    private Byte roleId;

    /**
     * 菜单ID
     */
    @TableField(value = "menu_id")
    private Byte menuId;
}